/*
 * head.h
 *
 *  Created on: 2012-2-19
 *      Author: zgx
 */

#ifndef HEAD_H_
#define HEAD_H_

#include<sys/socket.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<sys/ioctl.h>

#include<fcntl.h>
#include<arpa/inet.h>
#include<netinet/in.h>
#include<unistd.h>
#include<netdb.h>

#include<net/if.h>
#include<net/if_arp.h>

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<errno.h>
#include<pthread.h>
#include<iostream>
#include<string>
using namespace std;

#define E_OUTOFMEMORY -1
#define S_OK 		   1

#define RTP_UDP 1
#define RTP_TCP 2

#define RTSP_PORT 554


typedef unsigned char BYTE;
typedef unsigned long DWORD;
typedef int BOOL;
typedef unsigned short WORD;
typedef int HRESULT;

#endif /* HEAD_H_ */
